package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingSerivce;

/**
 * 定时清理过期的预约设置信息
 */
public class ClearOrderSettingsJob {

    @Reference
    private OrderSettingSerivce orderSettingSerivce;

    public void clearOrderSettings(){

        try {
            orderSettingSerivce.deleteOrderSettingsBeforeToday();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
